package com.heh.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.heh.mybatisplus.dto.AbcSettingsDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @项目名： spring-emq
 * @包名： com.heh.mybatisplus.entity
 * @文件名: AbcSettingsEntity
 * @创建者: liufudong@szyh-smart.com
 * @创建时间: 2024/10/25 16:55
 * @描述：
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@TableName("abc_settings")
public class AbcSettingsEntity extends BaseEntity {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * endTime
     */
    private LocalDateTime endTime;
    /**
     * beginTime
     */
    private LocalDateTime beginTime;

    @TableField(value = "timeSetting",typeHandler = FastjsonTypeHandler.class)
//    @TableField(typeHandler = FastjsonTypeHandler.class)
    private AbcSettingsDTO timeSetting;
}
